const ipcRenderer = require('electron').ipcRenderer;
const btn = document.querySelector("button");
window.addEventListener("load", async () => {
  btn.addEventListener("click", async () => {
    ipcRenderer.send('message', 'open');
  });
});